package com.youfang.sixthmedia.message;

import java.util.List;

import com.youfang.sixthmedia.net.CommonResponse;
import com.youfang.sixthmedia.net.MessageDelegate;
import com.youfang.sixthmedia.net.Pair;
import com.youfang.sixthmedia.net.Request;
import com.youfang.sixthmedia.net.Response;

public class AddfeedbackMessageDelegate extends MessageDelegate {

	public static class Req extends Request {

		private String name;
		private String email;
		private String phone;
		private String content;

		@Override
		public List<Pair> getParams() {
			return Pair.p("controller", "feedback").p("action", "addfeedback")
					.p("name", name).p("email", email).p("phone", phone)
					.p("content", content).get();
		}

		@Override
		public void genMetaData() {

		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getEmail() {
			return email;
		}

		public void setEmail(String email) {
			this.email = email;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		public String getContent() {
			return content;
		}

		public void setContent(String content) {
			this.content = content;
		}

	}

	public Req req = new Req();
	public Response resp = Response.common();

	@Override
	public Request request() {
		return req;
	}

	@Override
	public Response response() {
		return resp;
	}

}
